Fix bug reported by Nam SungHyun.
authorSoeren Sandmann <sandmann@daimi.au.dk>
Wed, 18 Feb 2004 12:43:23 +0000 (12:43 +0000)
committerSøren Sandmann Pedersen <ssp@src.gnome.org>
Wed, 18 Feb 2004 12:43:23 +0000 (12:43 +0000)
Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

Fix bug reported by Nam SungHyun.

* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
Don't use a cached GC here since the function needs to modify the
foreground color.

* gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
to NULL on the cached GC.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkpixbuf-render.c
gdk/gdkwindow.c

index 0eaf4aac39c4ad1268338419621b75b5c5977cdc..b13a29e0c106bf9b19d8721627ca285137d7f4c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
+
+       Fix bug reported by Nam SungHyun.
+       
+       * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
+       Don't use a cached GC here since the function needs to modify the
+       foreground color.
+
+       * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
+       to NULL on the cached GC.
+
 2004-02-17  Federico Mena Quintero  <federico@ximian.com>
 
        * gtk/gtkfilechooserdialog.c
index 0eaf4aac39c4ad1268338419621b75b5c5977cdc..b13a29e0c106bf9b19d8721627ca285137d7f4c1 100644 (file)
@@ -1,3 +1,14 @@
+Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
+
+       Fix bug reported by Nam SungHyun.
+       
+       * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
+       Don't use a cached GC here since the function needs to modify the
+       foreground color.
+
+       * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
+       to NULL on the cached GC.
+
 2004-02-17  Federico Mena Quintero  <federico@ximian.com>
 
        * gtk/gtkfilechooserdialog.c
index 0eaf4aac39c4ad1268338419621b75b5c5977cdc..b13a29e0c106bf9b19d8721627ca285137d7f4c1 100644 (file)
@@ -1,3 +1,14 @@
+Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
+
+       Fix bug reported by Nam SungHyun.
+       
+       * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
+       Don't use a cached GC here since the function needs to modify the
+       foreground color.
+
+       * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
+       to NULL on the cached GC.
+
 2004-02-17  Federico Mena Quintero  <federico@ximian.com>
 
        * gtk/gtkfilechooserdialog.c
index 0eaf4aac39c4ad1268338419621b75b5c5977cdc..b13a29e0c106bf9b19d8721627ca285137d7f4c1 100644 (file)
@@ -1,3 +1,14 @@
+Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
+
+       Fix bug reported by Nam SungHyun.
+       
+       * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
+       Don't use a cached GC here since the function needs to modify the
+       foreground color.
+
+       * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
+       to NULL on the cached GC.
+
 2004-02-17  Federico Mena Quintero  <federico@ximian.com>
 
        * gtk/gtkfilechooserdialog.c
index 0eaf4aac39c4ad1268338419621b75b5c5977cdc..b13a29e0c106bf9b19d8721627ca285137d7f4c1 100644 (file)
@@ -1,3 +1,14 @@
+Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
+
+       Fix bug reported by Nam SungHyun.
+       
+       * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
+       Don't use a cached GC here since the function needs to modify the
+       foreground color.
+
+       * gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
+       to NULL on the cached GC.
+
 2004-02-17  Federico Mena Quintero  <federico@ximian.com>
 
        * gtk/gtkfilechooserdialog.c
index b93fac33cca428b8880d78dddc9fb7992e8c80d1..0065ed13f814147fcbb8a0339caefa68f9a002a9 100644 (file)
@@ -83,7 +83,6 @@ gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
     return;
 
   gc = gdk_gc_new (bitmap);
-  gc = _gdk_drawable_get_scratch_gc (GDK_DRAWABLE (bitmap), FALSE);
 
   if (!pixbuf->has_alpha)
     {
@@ -132,6 +131,8 @@ gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
                       start + dest_x, y + dest_y,
                       x - 1 + dest_x, y + dest_y);
     }
+
+  g_object_unref (gc);
 }
 
 \f
index 4d278dcc245b995c2759ae025ba5394c529043b2..817aba27a4f5abab0d88c4d868b03b2c18c7be1e 100644 (file)
@@ -1033,6 +1033,8 @@ gdk_window_end_paint (GdkWindow *window)
                      clip_box.x - x_offset, clip_box.y - y_offset,
                      clip_box.width, clip_box.height);
 
+  gdk_gc_set_clip_region (tmp_gc, NULL);
+  
   g_object_unref (paint->pixmap);
   gdk_region_destroy (paint->region);
   g_free (paint);